package contreller

import (
	"SkillTextJD2/Util"
	"SkillTextJD2/model"
	"fmt"
	"github.com/gin-gonic/gin"
)

func Tour_group_purchasesHandler(c *gin.Context) {
	Name := c.Query("Name")
	fmt.Println("Name=", Name)
	var Tour = model.Tour{
		Tour_group_purchases: c.PostForm("txt_cName"),
	}
	Util.DB().Table("attractions").Where("attractions_Name LIKE ?", "%"+Tour.Tour_group_purchases+"%").Update(Tour)
	//util.ConnDB().Table("companys").Where("company_id=?", id).Update(company)
	HandlerIndex(c)
}
